package com.icangya.DAO.impl;

import com.icangya.DAO.IGoodsConvertDetailsDAO;
import com.icangya.domain.GoodsConvertDetails;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public class GoodsConvertDetailsDAOImpl extends  BaseDAO<GoodsConvertDetails> implements IGoodsConvertDetailsDAO {

    Logger logger = LoggerFactory.getLogger(this.getClass());

    @Override
    public List getGoodsConvertDetailsByGid(long gid) {
        String hql="FROM GoodsConvertDetails gc where gc.goodsConvertId=?";
        List list=getHibernateTemplate().find(hql,gid);
        if(list.size()>0)
            return list;
        return null;
    }
}
